package assetloanapi

import (
	"github.com/hyperledger/fabric-samples/asset-kx/chaincode-go/chaincode/asset/api"
	ledgerapi "github.com/hyperledger/fabric-samples/asset-kx/chaincode-go/chaincode/ledger-api"
)

type AssetLoanContractApi interface {
	ReadLoanRelatedAssets(ctx ledgerapi.TransactionContextInterface, loanNo string) ([]assetapi.Asset, error)
	AssetLoanRelation(ctx ledgerapi.TransactionContextInterface, assetNo string, loanNo string, loanAmount string) error
	AssetLoanDeRelation(ctx ledgerapi.TransactionContextInterface, assetNo string, loanNo string) error
	LoanPayed(ctx ledgerapi.TransactionContextInterface, loanNo string) error
	ReadAssetRelatedLoans(ctx ledgerapi.TransactionContextInterface, assetNo string) ([]*AssetLoan, error)
}
